package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TEntryApplicationMapper;
import com.ruoyi.system.domain.TEntryApplication;
import com.ruoyi.system.service.ITEntryApplicationService;

/**
 * 入驻申请Service业务层处理
 * 
 * @author xiuddooo
 * @date 2025-09-18
 */
@Service
public class TEntryApplicationServiceImpl implements ITEntryApplicationService 
{
    @Autowired
    private TEntryApplicationMapper tEntryApplicationMapper;

    /**
     * 查询入驻申请
     * 
     * @param id 入驻申请主键
     * @return 入驻申请
     */
    @Override
    public TEntryApplication selectTEntryApplicationById(String id)
    {
        return tEntryApplicationMapper.selectTEntryApplicationById(id);
    }

    /**
     * 查询入驻申请列表
     * 
     * @param tEntryApplication 入驻申请
     * @return 入驻申请
     */
    @Override
    public List<TEntryApplication> selectTEntryApplicationList(TEntryApplication tEntryApplication)
    {
        return tEntryApplicationMapper.selectTEntryApplicationList(tEntryApplication);
    }

    /**
     * 新增入驻申请
     * 
     * @param tEntryApplication 入驻申请
     * @return 结果
     */
    @Override
    public int insertTEntryApplication(TEntryApplication tEntryApplication)
    {
        tEntryApplication.setCreateTime(DateUtils.getNowDate());
        return tEntryApplicationMapper.insertTEntryApplication(tEntryApplication);
    }

    /**
     * 修改入驻申请
     * 
     * @param tEntryApplication 入驻申请
     * @return 结果
     */
    @Override
    public int updateTEntryApplication(TEntryApplication tEntryApplication)
    {
        tEntryApplication.setUpdateTime(DateUtils.getNowDate());
        return tEntryApplicationMapper.updateTEntryApplication(tEntryApplication);
    }

    /**
     * 批量删除入驻申请
     * 
     * @param ids 需要删除的入驻申请主键
     * @return 结果
     */
    @Override
    public int deleteTEntryApplicationByIds(String[] ids)
    {
        return tEntryApplicationMapper.deleteTEntryApplicationByIds(ids);
    }

    /**
     * 删除入驻申请信息
     * 
     * @param id 入驻申请主键
     * @return 结果
     */
    @Override
    public int deleteTEntryApplicationById(String id)
    {
        return tEntryApplicationMapper.deleteTEntryApplicationById(id);
    }
}
